<template>
  <div class="voice-input-indicator" v-if="show">
    <div class="voice-wave">
      <span></span>
      <span></span>
      <span></span>
      <span></span>
      <span></span>
    </div>
    <div class="voice-input-text">正在听您说话...</div>
  </div>
</template>

<script setup>
defineProps({
  show: Boolean
})
</script>

<style scoped>
.voice-input-indicator {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
}

.voice-wave span {
  width: 3px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 3px;
  animation: wave 1s infinite;
}

.voice-wave span:nth-child(2) {
  animation-delay: 0.1s;
}

.voice-wave span:nth-child(3) {
  animation-delay: 0.2s;
}

.voice-wave span:nth-child(4) {
  animation-delay: 0.3s;
}

.voice-wave span:nth-child(5) {
  animation-delay: 0.4s;
}

.voice-input-text {
  color: var(--text-primary);
  font-weight: 500;
}

@keyframes wave {
  0%, 100% {
    height: 20px;
  }
  50% {
    height: 40px;
  }
}
</style> 